import { S } from '../../s';
import { IPSDEChartSeriesEncode } from './ipsdechart-series-encode';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEChartSeriesEncodeImplBase
  extends PSModelObjectImpl
  implements IPSDEChartSeriesEncode
{
  get index(): number {
    return this.M.index;
  }

  get itemId(): string {
    return this.M.itemId;
  }

  get itemName(): string {
    return this.M.itemName;
  }

  get type():
    | 'XY'
    | 'POLAR'
    | 'RADAR'
    | 'PARALLEL'
    | 'SINGLE'
    | 'CALENDAR'
    | 'MAP'
    | 'NONE' {
    return this.M.type;
  }
  get cls(): string {
    return 'PSDEChartSeriesEncodeImplBase';
  }
  instanceof(cls: string): boolean {
    if (cls == S._10b || cls == S._10c) return true;
    return super.instanceof(cls);
  }
}
